﻿using House.Server.WebApi.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace House.Server.WebApi.ViewModel
{
    /// <summary>
    /// 登录页面 验证码
    /// </summary>
    public static class LoginViewModel
    {
        public static dynamic LoginCodeImge()
        {
            string code = string.Empty;
            byte[] imgByte = ValidateCode.CreateValidateGraphic(out code, 4, 100, 40, 20);
            return new
            {
                code = code.ToLower(),
                imgByte = imgByte
            };
        }
    }
}